<div class="row-fluid">
	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'MainForm',
		'enableAjaxValidation'=>false,
		'htmlOptions' => array(
			'data-oe-element' => 'MainForm',	
			'enctype' => 'multipart/form-data'
		)
	)); ?>
    <div class="span9">
    	<div class="form form-left">
			<div class="form-row">
				<?php echo $form->labelEx($model,'title'); ?>
				<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>200)); ?>
				<?php echo $form->error($model,'title'); ?>
			</div>
			<div class="form-row">
				<?php echo $form->labelEx($model,'content'); ?>
				<?php echo $form->textArea($model,'content', array('rows' => 20, 'class' => 'span6', 'id' => 'main-content')); ?>
				<?php $this->widget('ext.ckeditor.CKEditor', array('selector' => 'main-content'));?>
				<?php echo $form->error($model,'content'); ?>
			</div>
		</div>
	</div>
	<div class="span3">
		<div class="form form-right">	
			<div class="form-row">
				<?php echo $form->labelEx($model,'type'); ?>
				<?php echo $form->dropDownList($model,'type', $model->listType()); ?>
				<?php echo $form->error($model,'type'); ?>
			</div>
			<div class="form-row">
				<?php echo $form->labelEx($model,'thumbnail'); ?>
				<?php echo $form->fileField($model,'thumbnail'); ?>
				<?php echo $form->error($model,'thumbnail'); ?>
			</div>
			<div class="form-row">
				<?php echo $form->labelEx($model,'status'); ?>
				<?php echo $form->dropDownList($model,'status', array(0 => Yii::t('app', 'unPublic'), 1 => Yii::t('app', 'public'))); ?>
				<?php echo $form->error($model,'status'); ?>
			</div>
			<div class="form-row">
				<?php echo $form->labelEx($model,'desc'); ?>
				<?php echo $form->textArea($model,'desc',array('rows'=>1, 'cols'=>50)); ?>
				<?php echo $form->error($model,'desc'); ?>
			</div>
			<div class="form-row">
				<?php echo $form->labelEx($model,'seo_link'); ?>
				<?php echo $form->textField($model,'seo_link'); ?>
				<?php echo $form->error($model,'seo_link'); ?>
			</div>
			<div class="form-row">
				<?php echo $form->labelEx($model,'seo_keyword'); ?>
				<?php echo $form->textArea($model,'seo_keyword',array('rows'=>1, 'cols'=>50)); ?>
				<?php echo $form->error($model,'seo_keyword'); ?>
			</div>
			<div class="form-row">
				<?php echo $form->labelEx($model,'seo_description'); ?>
				<?php echo $form->textArea($model,'seo_description',array('rows'=>1, 'cols'=>50)); ?>
				<?php echo $form->error($model,'seo_description'); ?>
			</div>
		</div>
	</div>
	<?php $this->endWidget(); ?>
</div><!-- form -->